package com.useeinfo.oa.modules.wuHanCommon.base.entity;

import com.useeinfo.framework.extend.entity.SuperClassEntity;
import com.useeinfo.oa.modules.wuHanCommon.base.enums.MeterReadingEnum;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;
import java.util.Date;

/**
 * 自动抄表数据表
 */
@Entity
@Table(name = "wuhan_automatic_model")
public class AutomaticModel extends SuperClassEntity<AutomaticModel> {

    /**
     * 所属机组
     */
    @Enumerated(EnumType.STRING)
    private MeterReadingEnum meterReadingEnum;
    /**
     * 开始计算时间
     */
    private Integer startTime;
    /**
     * 结束计算时间
     */
    private Integer endTime;
    /**
     * 时间excel所在节点
     */
    private Integer timeIndex;
    /**
     * 检查内容
     */
    private String checkContent;
    /**
     * 检查内容excel所在节点
     */
    private Integer contentIndex;
    /**
     * 是否异常
     */
    private boolean isAbnormal;


    public AutomaticModel() {
    }

    public AutomaticModel(MeterReadingEnum meterReadingEnum, Integer startTime, Integer endTime, Integer timeIndex, String checkContent, Integer contentIndex) {
        this.meterReadingEnum = meterReadingEnum;
        this.startTime = startTime;
        this.endTime = endTime;
        this.timeIndex = timeIndex;
        this.checkContent = checkContent;
        this.contentIndex = contentIndex;
    }

    public MeterReadingEnum getMeterReadingEnum() {
        return meterReadingEnum;
    }

    public void setMeterReadingEnum(MeterReadingEnum meterReadingEnum) {
        this.meterReadingEnum = meterReadingEnum;
    }

    public Integer getStartTime() {
        return startTime;
    }

    public void setStartTime(Integer startTime) {
        this.startTime = startTime;
    }

    public Integer getEndTime() {
        return endTime;
    }

    public void setEndTime(Integer endTime) {
        this.endTime = endTime;
    }

    public Integer getTimeIndex() {
        return timeIndex;
    }

    public void setTimeIndex(Integer timeIndex) {
        this.timeIndex = timeIndex;
    }

    public Integer getContentIndex() {
        return contentIndex;
    }

    public void setContentIndex(Integer contentIndex) {
        this.contentIndex = contentIndex;
    }

    public String getCheckContent() {
        return checkContent;
    }

    public void setCheckContent(String checkContent) {
        this.checkContent = checkContent;
    }

    public boolean isAbnormal() {
        return isAbnormal;
    }

    public void setAbnormal(boolean abnormal) {
        isAbnormal = abnormal;
    }
}
